import base from '@/api/baseurl';
import request from '@/utils/request'
/**
 * 查询方案
 * @param {*} query 
 * @returns 
 */
export function fetchListTCDirectReference(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TCDirectReference/findTCDirectReference',
    method: 'get',
    params: query
  })
}

export function fetchListbsall(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TCDirectReference/findbsall',
    method: 'get',
    params: query
  })
}

export function fetchListtsall(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TCDirectReference/findtsall',
    method: 'get',
    params: query
  })
}

export function fetchListMKcurve(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCvDirectRef/fetchListMKcurve',
    method: 'get',
    params: query
  })
}

/**
 * 单行删除
 * @param {*} query 
 * @returns 
 */
export function deleteTCDirectReference(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TCDirectReference/deleteTCDirectReference',
    method: 'get',
    params: query
  })
}

/**
 * 添加
 * @param {*} data 
 * @returns 
 */
export function addTCDirectReference(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TCDirectReference/addTCDirectReference',
    method: 'post',
    data
  })
}
/**
 * 修改
 * @param {*} data 
 * @returns 
 */
export function updateTCDirectReference(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TCDirectReference/updateTCDirectReference',
    method: 'post',
    data
  })
}
/**
 * 多选删除
 * @param {*} data 
 * @returns 
 */
export function batchDeleteTCDirectReference(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TCDirectReference/deleteTCDirectReferenceBatch',
    method: 'post',
    data
  })
}

// 查询所述法人，根据曲线code
export function tcDirectReferenceFindlpname(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TCDirectReference/findlpname',
    method: 'get',
    params: query
  })
}
//同步
export function syncTCDirectReference(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TCDirectReference/syncTCDirectReference',
    method: 'get',
    params: query
  })
}
//增加里的转移曲线下拉框
export function findtsalltype(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TCDirectReference/findtsalltype',
    method: 'get',
    params: query
  })
}